package com.xdcplus.web.common.enums;

/**
 * @author xyy
 * @date 2023/4/22 12:23
 */
public enum SysBaseDataCateEnum {
    ALIGN_TYPE("ALIGN_TYPE", "定线类型"),
    ;

    private String code;

    private String msg;

    public static String getMsg(String code) {
        for (SysBaseDataCateEnum ele : values()) {
            if (ele.getCode().equals(code)) {
                return ele.getMsg();
            }
        }
        return null;
    }

    SysBaseDataCateEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
